import util.util as utils

# 重复执行,并将结果组合
def multiCallBack(data, indexs, callback):
    n = 0
    for i in indexs:
        if n == 0:
            ret = callback(data, i)
        else:
            ret = utils.merge(ret,callback(data, i))
        n += 1
    return ret